package com.pinjitsu.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: edmond
 * Date: 9/10/11
 * Time: 9:28 PM
 * To change this template use File | Settings | File Templates.
 */
@XmlRootElement
public class Highscores {

    private List<Highscore> highscores;

    @XmlElement
    public List<Highscore> getHighscore() {
        if (highscores == null) {
            highscores = new ArrayList<Highscore>();
        }
        return highscores;
    }

    public void addHighscore(Highscore highscore)
    {
        getHighscore().add(highscore);
    }
}

